package com.cskaoyan.bean.lzp;

import com.cskaoyan.bean.Category;
import com.cskaoyan.bean.Goods;
import lombok.Data;

import java.util.List;

/**
 * \* Description:
 * \* @author: Lizhanpeng
 * \* Date: 2022/5/8
 * \
 */
@Data
public class GoodsWxListVO {
    private Integer total; //总的数据量，没有分页的情况下的数据量
    private Integer pages; //总的页码数
    private Integer limit; //当前页最多的数据量
    private Integer page; //当前页的页码
    private List<WxCategoryGoodsVO> list;
    private List<Category> filterCategoryList;


    public static GoodsWxListVO data(long total, Integer pages, Integer limit, Integer page, List list,List filterCategoryList) {
        GoodsWxListVO goodsWxListVO = new GoodsWxListVO();
        goodsWxListVO.setTotal((int) total);
        goodsWxListVO.setPages(pages);
        goodsWxListVO.setPage(page);
        goodsWxListVO.setLimit(limit);
        goodsWxListVO.setList(list);
        goodsWxListVO.setFilterCategoryList(filterCategoryList);
        return goodsWxListVO;
    }
}
